package com.mg.yygh.user.client;

import com.mg.yygh.common.result.Result;
import com.mg.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author M_Dragon
 * @date 2022/9/26/026 14:29
 */
@FeignClient(value = "service-user") // 服务ID
@Repository
public interface PatientFeignClient {

    // 内部远程调用：根据id获取就诊人
    @GetMapping("/api/user/patient/inner/get/{id}")
    public Patient getPatientOrder(@PathVariable("id") Long id);
}
